package com.kust.smarthome.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kust.smarthome.web.dto.PersonDetailsDto;
import com.kust.smarthome.web.model.PersonDetails;
import com.kust.smarthome.web.model.Relation;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author iAuzre
 * @since 2021-07-06
 */
public interface IRelationService extends IService<Relation> {

    int insert(Relation relation);

    List<Relation> relationListByUser(Integer userId);

    List<PersonDetails> findPersonDetailsByUser(Integer userId);

    boolean removeRelation(Integer userId, Integer relationId);
}
